package jp.co.iris_ltd.irisphotoeditor;

import jp.co.iris_ltd.irisphotoeditor.util.ArtTool;
import jp.co.iris_ltd.irisphotoeditor.util.HistoryStack;
import android.app.Application;
import android.graphics.Bitmap;

public class IrisPhotoEditorApplication extends Application {
    private static final String TAG = "IrisPhotoEditorApplication";

    private Bitmap mBitmap = null;
    private Bitmap mBaseBitmap = null;
    private int mEditorOrientation = 0;
    private HistoryStack<ArtTool> mHistory = new HistoryStack<ArtTool>();

    @Override
    public void onCreate() {
        super.onCreate();
        init();
    }

    @Override
    public void onTerminate() {
        super.onTerminate();
    }

    public void init(){
        mBitmap = null;
        mBaseBitmap = null;
        mEditorOrientation = 0;
        mHistory = new HistoryStack<ArtTool>();
    }

    public Bitmap getBitmap() {
        return mBitmap;
    }

    public void setBitmap(Bitmap bitmap) {
        mBitmap = bitmap;
    }
    public Bitmap getBaseBitmap() {
        return mBaseBitmap;
    }

    public void setBaseBitmap(Bitmap baseBitmap) {
        mBaseBitmap = baseBitmap;
    }

    public int getEditorOrientation() {
        return mEditorOrientation;
    }

    public void setEditorOrientation(int editorOrientation) {
        mEditorOrientation = editorOrientation;
    }

    public HistoryStack<ArtTool> getHistory() {
        return mHistory;
    }

    public void setHistory(HistoryStack<ArtTool> history) {
        mHistory = history;
    }
}
